package sfy.md.behavior.observer;

public class People extends PeopleObserved {

  public   String name;
  public   String age;

    public String getName() {

        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public void changeAge(){
        System.out.println("大了一岁");
        this.age = age +1;

        notifyy();

    }
}
